﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HeaderAndFooter.Master" AutoEventWireup="true" CodeBehind="profile.aspx.cs" Inherits="AnaGiftedProject.profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">

<!-- RIGHT--><div class="rightprof">
<div class="avatar"><img src="img/noimage.jpg"  style="height:150px" width="200px"/></div>
<div id="sidebar">
<ul>
<li><a href="#">الرئيسية</a></li>
<li><a href="#">الصفحة الشخصية</a></li>	
<li><a href="#">عني</a></li>
<li><a href="#">صور</a></li>
<li><a href="#">فيديو</a></li>
<li><a href="#">الأصدقاء</a></li>
<li><a href="#">الرسائل</a></li>
<li><a href="#">لوحة التحكم</a></li>
</ul></div>
<!-- RIGHT/--></div>

<!-- LEFT--><div class="leftprof">
<div class="updates">
    <br />
    <asp:Label ID="Label1" runat="server" Text="العنوان :"></asp:Label>
    <asp:TextBox ID="txtName" runat="server" style= 
        "margin-right: 32px" Height="23px" Width="355px"></asp:TextBox>
    <br /><br />
    <asp:Label ID="Label2" runat="server" Text="المحتوى:"></asp:Label>
    <asp:TextBox ID="txtBody" runat="server" Height="50px" 
        style= "margin-right: 30px" Width="350px" TextMode="MultiLine"></asp:TextBox>
    <br />
    <asp:Button ID="Button1" runat="server" 
        Text="ارسال" style="margin-right: 70px" Width="56px" 
        onclick="Button1_Click" />
    <br /><hr style="width: 511px" />
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="Id" 
        DataSourceID="EntityDataSource1">
        <AlternatingItemTemplate>
            <td runat="server" style="">
                <span class="style1">العنوان: </span>&nbsp;<asp:Label ID="SubjectLabel" 
                    runat="server" Text='<%# Eval("Subject") %>' />
                <span class="style1"><br /> </span>&nbsp;<asp:Label ID="BodyLabel" 
                    runat="server" Text='<%# Eval("Body") %>' Width="550px" />
                <br />UserId:
                <asp:Label ID="UserIdLabel" runat="server" Text='<%# Eval("UserId") %>' />
                <br /><span class="style1">التاريخ: </span>&nbsp;<asp:Label ID="DateAddLabel" 
                    runat="server" Text='<%# Eval("DateAdd") %>' />
                <br />User:
                <asp:Label ID="UserLabel" runat="server" Text='<%# Eval("User") %>' />
                <br />Comments:
                <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>' />
                <br /><br />
                <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="تعديل" 
                    Width="80px" />
                <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="حذف" 
                    Width="80px" />
                <br />
                <hr />
                <br />
            </td>
        </AlternatingItemTemplate>
        <EditItemTemplate>
            <td runat="server" style="">
                <br /><span class="style1">العنوان:</span>&nbsp;
                <asp:TextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>' 
                    Width="400px"></asp:TextBox>
                <br />
                <span class="style1">المحتوى: </span>&nbsp;<asp:TextBox ID="BodyTextBox" 
                    runat="server" Text='<%# Bind("Body") %>' TextMode="MultiLine" 
                    Height="70px" Width="400px" />
                <br />UserId:
                <asp:TextBox ID="UserIdTextBox" runat="server" Text='<%# Bind("UserId") %>' />
                <br /><span class="style1">التاريخ: </span>
                <br />
                User: <br />Comments:
                <br /><br />
                <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="تحديث" 
                    Width="80px" />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="الغاء" 
                    Width="80px" />
                <br />
                <hr />
                <br />
            </td>
        </EditItemTemplate>
        <EmptyDataTemplate>
            <table runat="server" style="">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <EmptyItemTemplate>
<td runat="server" />
        </EmptyItemTemplate>
        <GroupTemplate>
            <tr ID="itemPlaceholderContainer" runat="server">
                <td ID="itemPlaceholder" runat="server">
                </td>
            </tr>
        </GroupTemplate>
        <InsertItemTemplate>
            <td runat="server" style="">
                Id:
                <asp:TextBox ID="IdTextBox" runat="server" Text='<%# Bind("Id") %>' />
                <br />Subject:
                <asp:TextBox ID="SubjectTextBox" runat="server" Text='<%# Bind("Subject") %>' />
                <br />Body:
                <asp:TextBox ID="BodyTextBox" runat="server" Text='<%# Bind("Body") %>' />
                <br />UserId:
                <asp:TextBox ID="UserIdTextBox" runat="server" Text='<%# Bind("UserId") %>' />
                <br />DateAdd:
                <asp:TextBox ID="DateAddTextBox" runat="server" Text='<%# Bind("DateAdd") %>' />
                <br />User:
                <asp:TextBox ID="UserTextBox" runat="server" Text='<%# Bind("User") %>' />
                <br />Comments:
                <asp:TextBox ID="CommentsTextBox" runat="server" 
                    Text='<%# Bind("Comments") %>' />
                <br />
                <asp:Button ID="InsertButton" runat="server" CommandName="Insert" 
                    Text="Insert" />
                <br />
                <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" 
                    Text="Clear" />
                <br />
            </td>
        </InsertItemTemplate>
        <ItemTemplate>
            <td runat="server" class="style2">
                <span class="style1">العنوان: </span>&nbsp;<asp:Label ID="SubjectLabel" 
                    runat="server" Text='<%# Eval("Subject") %>' />
                <br />&nbsp;<asp:Label ID="BodyLabel" 
                    runat="server" Text='<%# Eval("Body") %>' Width="550px" />
                <br />UserId:
                <asp:Label ID="UserIdLabel" runat="server" Text='<%# Eval("UserId") %>' />
                <br /><span class="style1">التاريخ: </span>&nbsp;<asp:Label ID="DateAddLabel" 
                    runat="server" Text='<%# Eval("DateAdd") %>' />
                <br />User:
                <asp:Label ID="UserLabel" runat="server" Text='<%# Eval("User") %>' />
                <br />Comments:
                <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>' />
                <br />
                <br />
                <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="تعديل" 
                    Width="80px" />
                <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="حذف" 
                    Width="80px" 
                    OnClientClick="return confirm(&quot;هل تريد حذف السجل ؟&quot;)" />
                <br />
                <hr />
            </td>
        </ItemTemplate>
        <LayoutTemplate>
            <table runat="server">
                <tr runat="server">
                    <td runat="server">
                        <table ID="groupPlaceholderContainer" runat="server" border="0" style="">
                            <tr ID="groupPlaceholder" runat="server">
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr runat="server">
                    <td runat="server" style="">
                        <asp:DataPager ID="DataPager1" runat="server" PageSize="2">
                            <Fields>
                                <asp:NextPreviousPagerField ButtonType="Button" FirstPageText="الأول" 
                                    LastPageText="الأخير" NextPageText="التالي" PreviousPageText="السابق" 
                                    ShowFirstPageButton="True" ShowNextPageButton="False" 
                                    ShowPreviousPageButton="False" />
                                <asp:NumericPagerField />
                                <asp:NextPreviousPagerField ButtonType="Button" FirstPageText="الأول" 
                                    LastPageText="الأخير" NextPageText="التالي" PreviousPageText="السابق" 
                                    ShowLastPageButton="True" ShowNextPageButton="False" 
                                    ShowPreviousPageButton="False" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <SelectedItemTemplate>
            <td runat="server" style="">
                Id:
                <asp:Label ID="IdLabel" runat="server" Text='<%# Eval("Id") %>' />
                <br />Subject:
                <asp:Label ID="SubjectLabel" runat="server" Text='<%# Eval("Subject") %>' />
                <br />Body:
                <asp:Label ID="BodyLabel" runat="server" Text='<%# Eval("Body") %>' />
                <br />UserId:
                <asp:Label ID="UserIdLabel" runat="server" Text='<%# Eval("UserId") %>' />
                <br />DateAdd:
                <asp:Label ID="DateAddLabel" runat="server" Text='<%# Eval("DateAdd") %>' />
                <br />User:
                <asp:Label ID="UserLabel" runat="server" Text='<%# Eval("User") %>' />
                <br />Comments:
                <asp:Label ID="CommentsLabel" runat="server" Text='<%# Eval("Comments") %>' />
                <br />
                <asp:Button ID="DeleteButton" runat="server" CommandName="Delete" 
                    Text="Delete" />
                <br />
                <asp:Button ID="EditButton" runat="server" CommandName="Edit" Text="Edit" />
                <br />
            </td>
        </SelectedItemTemplate>
    </asp:ListView>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=DatabaseGiftedEntities" 
        DefaultContainerName="DatabaseGiftedEntities" EnableDelete="True" 
        EnableFlattening="False" EnableInsert="True" EnableUpdate="True" 
        EntitySetName="Blogs">
    </asp:EntityDataSource>
    </div>
<!-- LEFT/--></div>
   </div>
    </form>
</asp:Content>
